package com.github.unclecatmyself.bootstrap.channel.http;

/**
 * public enum  FromServerServiceImpl implements FromServerService {
 *
 * TYPE1(1,"【系统通知】您的账号存在异常，请注意安全保密信息。"),
 * TYPE2(2,"【系统通知】恭喜您连续登录超过5天，奖励5积分。");
 *
 * private Integer code;
 *
 * private String message;
 *
 * FromServerServiceImpl(Integer code, String message){
 * this.code = code;
 * this.message = message;
 * }
 *
 *
 * public Integer getCode() {
 * return code;
 * }
 *
 *
 * public String findByCode(Object code) {
 * Integer codes = (Integer)code;
 * for (FromServerServiceImpl item: FromServerServiceImpl.values()) {
 * if (item.code == codes){
 * return item.message;
 * }
 * }
 * return null;
 * }
 *
 * public void setCode(Integer code) {
 * this.code = code;
 * }
 *
 * public String getMessage() {
 * return message;
 * }
 *
 * public void setMessage(String message) {
 * this.message = message;
 * }
 *
 *
 * }
 * Created by MySelf on 2019/1/2.
 */
public interface FromServerService<Integer> {

    Integer getCode();

    String findByCode(Integer code);
}
